import Vue from "vue";
import Router from "vue-router";
import home from "@/views/home";
import albumList from "@/views/albumList";
import player from "@/views/player";
import ip from "@/views/ip";
import search from "@/views/search";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      component: home
    },
    {
      path: "/ip",
      name: "ip",
      component: ip
    },
    {
      path: "/albumList/:id",
      name: "albumList",
      component: albumList
    },
    {
      path: "/player",
      name: "player",
      component: player
    },
    {
      path: "/search",
      name: "search",
      component: search
    }
  ]
});
